import { createRouter, createWebHashHistory } from "vue-router";
import gz from "../views/gz.vue";
import ProfileEdit from "../views/ProfileEdit.vue";

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: "/",
      redirect: "/gz",
    },
    {
      path: "/gz",
      component: gz,
      meta: {
        title: "我的关注",
      },
    },
    {
      path: "/gz/fs",
      component: gz,
      meta: {
        title: "我的粉丝",
      },
    },
    {
      path: "/profile",
      component: ProfileEdit,
      meta: {
        title: "个人信息",
      },
    },
  ],
});

export default router;
